package com.ruoyi.zhjd.laboratory.modules.laboratorystressmachine.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.zhjd.laboratory.modules.laboratorystressmachine.dto.LaboratoryStressMachineListDto;
import com.ruoyi.zhjd.laboratory.modules.laboratorystressmachine.service.LaboratoryStressMachineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;
// import com.qzsoft.jeemis.common.utils.Result;
// import com.qzsoft.zhjd.common.utils.ResultUtils;

/**
 * @ClassName LaboratoryStressMachineController
 * @Description 抗压试验控制器
 * @author linhuawei
 * @since 2022-04-29
 */
@RestController
@RequestMapping("/api/laboratoryStressMachine")
public class LaboratoryStressMachineController {

    @Autowired
    private LaboratoryStressMachineService laboratoryStressMachineService;

    /**
     * @Title page
     * @Description 获取分页数据
     * @param params 查询条件
     * @return 分页数据
     */
    @GetMapping("/page")
    public R<IPage<LaboratoryStressMachineListDto>> page(@RequestParam Map<String, Object> params) {
        IPage<LaboratoryStressMachineListDto> page = laboratoryStressMachineService.page(params);
        return R.ok(page);
    }

}
